package com.struggle.controller.config;

import com.struggle.common.ExchangeConstants;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className FanoutRabbitConfig
 * @Description 订阅模式生成者配置类
 * @Author liuwj3
 * @Date 2019/10/12 0012 下午 4:13
 **/
@Configuration
public class FanoutRabbitConfig {
    @Bean
    public FanoutExchange getFanoutExchange() {
        return new FanoutExchange(ExchangeConstants.FANOUT_EXCHANGE);
    }
}
